Rails.application.routes.draw do
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html

  namespace :api do
    namespace :v1 do

      resources :posts do
        collection do
          get :autocomplete
          get :suggest
        end

      end

      resource :about, only: [ :show ], controller: 'about'
    end
  end
end
